package com.hzit.aop.impl;

import com.hzit.aop.UserDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * 目标对象 (明星)
 */
// @Repository
public class UserDaoImpl implements UserDAO {
	@Override
	public void add() {
		System.out.println("UserDaoImpl--->add()");
		int i = 10 / 0;
	}

	@Override
	public void update() {
		System.out.println("UserDaoImpl--->update()");
	}

	@Override
	public void delete() {
		System.out.println("UserDaoImpl--->delete()");
	}

	@Override
	public void query() {
		System.out.println("UserDaoImpl--->query()");
	}
}
